const proxy = require('http-proxy-middleware');
module.exports = function (app) {
    app.use(proxy('/api', {
        target: 'http://api.zhuishushenqi.com',
        pathRewrite: {
            "^/api": "/"
        }
    }));
    app.use(proxy('/auth', {
        target: 'http://api05iye5.zhuishushenqi.com',
        pathRewrite: {
            "^/auth": "/"
        }
    }));
    app.use(proxy('/chapter', {
        target: 'http://http://chapterup.zhuishushenqi.com/chapter',
        pathRewrite: {
            "^/chapter": "/"
        }
    }));
};